package com.ikangtai.shecare.common.al;

import com.ikangtai.shecare.common.util.AppLog;

import java.text.SimpleDateFormat;
import java.util.Date;

public class CycleUnitDS {
    public long menstruationStartForecast = 0;
    public long menstruationEndForecast = 0;
    public long menstruationStartConfirm = 0;
    public long menstruationEndConfirm =0;
    public long BBTRiseDay = 0;
    public long peakDay = 0;
    public long ovulationDayForecast =0;
    public long ovulationDayConfirm =0;
    public long ovulationDayUserRecord =0;
    public long ovulationDayBBTRise =0;
    public long ovulationDayNextMenstruation= 0;
    public long fertileWindowStartForecast =0;
    public long fertileWindowEndForecast=0 ;
    public long fertileWindowStartConfirm =0;
    public long fertileWindowEndConfirm =0;
    public long dangerWindowStartForecast =0;
    public long dangerWindowEndForecast =0;
    public long dangerWindowStartConfirm =0;
    public long dangerWindowEndConfirm =0;
    public long nextMenstruationStartForecast =0;
    public long nextMenstruationEndForecast = 0;
    public long nextOvulationDayForecast = 0;
    public long nextFertileWindowStartForecast = 0;
    public long nextFertileWindowEndForecast = 0;
    public long nextDangerWindowStartForecast =0;
    public long nextDangerWindowEndForecast = 0;

	public int cycleNumber;
    public int ovulationDayUserRecordBasis;

	public void setData(int x){
		//for(int index = 0; index < 26; index++){
			//this.cycleData[index] = x; 
		//}
		this.cycleNumber = x;
	}

	public void showLog(){
		AppLog.i("CycleUnitDS show->");
		AppLog.i("cycleNumber:" + this.cycleNumber);
		AppLog.i("ovulationDayUserRecordBasis:" + this.ovulationDayUserRecordBasis);
		AppLog.i("cycleData:");
		
		SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss");
		String date = sdf.format(new Date(this.menstruationStartForecast*1000));
		AppLog.i("0:" + date + "  " + this.menstruationStartForecast + "   ");
		
		String date1 = sdf.format(new Date(this.menstruationEndForecast*1000));
		AppLog.i("1:" + date1 + "  " + this.menstruationEndForecast + "   ");
		
		String date2 = sdf.format(new Date(this.menstruationStartConfirm*1000));
		AppLog.i("2:" + date2 + "  " + this.menstruationStartConfirm + "   ");
		
		String date3 = sdf.format(new Date(this.menstruationEndConfirm*1000));
		AppLog.i("3:" + date3 + "  " + this.menstruationEndConfirm + "   ");
		
		String date4 = sdf.format(new Date(this.BBTRiseDay*1000));
		AppLog.i("4:" + date4 + "  " + this.BBTRiseDay + "   ");
		
		String date5 = sdf.format(new Date(this.peakDay*1000));
		AppLog.i("5:" + date5 + "  " + this.peakDay + "   ");
		
		String date6 = sdf.format(new Date(this.ovulationDayForecast*1000));
		AppLog.i("6:" + date6 + "  " + this.ovulationDayForecast + "   ");
		
		String date7 = sdf.format(new Date(this.ovulationDayConfirm*1000));
		AppLog.i("7:" + date7 + "  " + this.ovulationDayConfirm + "   ");
		
		String date8 = sdf.format(new Date(this.ovulationDayUserRecord*1000));
		AppLog.i("8:" + date8 + "  " + this.ovulationDayUserRecord + "   ");
		
		String date9 = sdf.format(new Date(this.ovulationDayBBTRise*1000));
		AppLog.i("9:" + date9 + "  " + this.ovulationDayBBTRise + "   ");
		
		String date10 = sdf.format(new Date(this.ovulationDayNextMenstruation*1000));
		AppLog.i("10:" + date10 + "  " + this.ovulationDayNextMenstruation + "   ");
		
		String date11 = sdf.format(new Date(this.fertileWindowStartForecast*1000));
		AppLog.i("11:" + date11 + "  " + this.fertileWindowStartForecast + "   ");
		
		String date12 = sdf.format(new Date(this.fertileWindowEndForecast*1000));
		AppLog.i("12:" + date12 + "  " + this.fertileWindowEndForecast + "   ");
		
		String date13 = sdf.format(new Date(this.fertileWindowStartConfirm*1000));
		AppLog.i("13:" + date13 + "  " + this.fertileWindowStartConfirm + "   ");
		
		String date14 = sdf.format(new Date(this.fertileWindowEndConfirm*1000));
		AppLog.i("14:" + date14 + "  " + this.fertileWindowEndConfirm + "   ");
		
		String date15 = sdf.format(new Date(this.dangerWindowStartForecast*1000));
		AppLog.i("15:" + date15 + "  " + this.dangerWindowStartForecast + "   ");
		
		String date16 = sdf.format(new Date(this.dangerWindowEndForecast*1000));
		AppLog.i("16:" + date16 + "  " + this.dangerWindowEndForecast + "   ");
		
		String date17 = sdf.format(new Date(this.dangerWindowStartConfirm*1000));
		AppLog.i("17:" + date17 + "  " + this.dangerWindowStartConfirm + "   ");
		
		String date18 = sdf.format(new Date(this.dangerWindowEndConfirm*1000));
		AppLog.i("18:" + date18 + "  " + this.dangerWindowEndConfirm + "   ");
		
		String date19 = sdf.format(new Date(this.nextMenstruationStartForecast*1000));
		AppLog.i("19:" + date19 + "  " + this.nextMenstruationStartForecast + "   ");
		
		String date20 = sdf.format(new Date(this.nextMenstruationEndForecast*1000));
		AppLog.i("20:" + date20 + "  " + this.nextMenstruationEndForecast + "   ");
		
		String date21 = sdf.format(new Date(this.nextOvulationDayForecast*1000));
		AppLog.i("21:" + date21 + "  " + this.nextOvulationDayForecast + "   ");
		
		String date22 = sdf.format(new Date(this.nextFertileWindowStartForecast*1000));
		AppLog.i("22:" + date22 + "  " + this.nextFertileWindowStartForecast + "   ");
		
		String date23 = sdf.format(new Date(this.nextFertileWindowEndForecast*1000));
		AppLog.i("23:" + date23 + "  " + this.nextFertileWindowEndForecast + "   ");
		
		String date24 = sdf.format(new Date(this.nextDangerWindowStartForecast*1000));
		AppLog.i("24:" + date24 + "  " + this.nextDangerWindowStartForecast + "   ");
		
		String date25 = sdf.format(new Date(this.nextDangerWindowEndForecast*1000));
		AppLog.i("25:" + date25 + "  " + this.nextDangerWindowEndForecast + "   ");

		AppLog.i(" ");
	}
}
